package cn.com.lms.business.exam.persistence.entity;

import com.bnzj.core.persistence.entity.BaseEntity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;
import java.util.Objects;

@Getter
@Setter
@Entity
@Table(name = "bnz_exam_paper")
@Schema(description="试卷")
public class Paper extends BaseEntity {

  @Schema(description="试卷名称")
  @Column(name = "paper_name")
  private String paperName;

  @Schema(description="试卷类型 1-计划试卷 2-阶段试卷")
  @Column(name = "paper_type")
  private Short paperType;

  @Schema(description="出题方式 1-选择式固定出题 2-指定题库随机出题")
  private Short type;

  @Schema(description="单选题分数")
  @Column(name = "single_score")
  private Integer singleScore;

  @Schema(description="多选题分数")
  @Column(name = "multiple_score")
  private Integer multipleScore;

  @Schema(description="判断题分数")
  private Integer judgeScore;

  @Schema(description="填空题分数")
  @Column(name = "fill_score")
  private Integer fillScore;

  @Schema(description="问答题分数")
  @Column(name = "explain_score")
  private Integer explainScore;

  @Schema(description="是否私密试卷 0-否  1-是")
  @Column(name = "is_private")
  private Boolean isPrivate;

  @Schema(description="是否启用0-未启用，1-已启用")
  @Column(name = "is_enable")
  private Boolean isEnable;

  @Schema(description="是否删除  0-未删除 1-已删除")
  @Column(name = "is_delete")
  private Boolean isDelete;

  @Transient
  @Schema(description="试卷题目列表")
  private List<PaperSubject> paperSubjectList;


  @Transient
  @Schema(description="试卷题库")
  private  List<PaperQuestion> paperQuestionList;


}
